package com.yuyou.activity.group.service.service;

import java.util.List;

import com.yuyou.activity.group.service.entity.ActivityGroupbuy;
import com.yuyou.activity.group.service.vo.resp.RespCanActivityGroupSPList;
import com.yuyou.activity.util.bean.ResBoolSimpleInfo;

public interface IActivityGroupbuyService {
    int deleteByPrimaryKey(Long activityGroupbuyId);

    int insert(ActivityGroupbuy record);

    ActivityGroupbuy selectByPrimaryKey(Long activityGroupbuyId);

    int updateByPrimaryKeySelective(ActivityGroupbuy record);

    void updateFailActivity();
    
    /**
     * 创建
     * @param record
     * @return
     */
	ResBoolSimpleInfo<String> add(ActivityGroupbuy record);

    /**
     * 获取可拼团列表
     * @param projectCode
     * @param limit
     * @return
     */
    List<RespCanActivityGroupSPList> findMoreCanActivityGroupBuy(String projectCode, int limit);
    
}